/**
 * Created by no1 on 2015/6/30.
 */
'use strict';

/**
 * Module ware.
 */

let mongoose = require('mongoose');
//let ware = require('../schema/ware');

var ObjectId = mongoose.Schema.ObjectId;
var extend = require('mongoose-schema-extend');
var wareSchema = require('../schema/wareSchema').wareSchema;
var ware = wareSchema.extend({
  //status
  //状态 : 0删除  1可用

  //记录商品历史列表
  //waresLib: {
  //  type: [Number]
  //}
  //销售状态 0 不可卖  1 可以卖
  isSell: Number
});

module.exports = mongoose.model('ware', ware);